package org.hook.showcase.pattern.command.impl;

import org.hook.showcase.pattern.command.Command;

public class LightOnCommand implements Command {
	private Light light;

	public LightOnCommand(Light light) {
		this.light = light;
	}

	@Override
	public void execute() {
		this.light.on();
	}

	@Override
	public void undo() {
		this.light.off();
	}
}
